* cmds.c (Fself_insert_command): Respect the width of EMACS_INT
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 10 Feb 2014 05:41:42 +0000 (09:41 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Mon, 10 Feb 2014 05:41:42 +0000 (09:41 +0400)
and avoid warning.

src/ChangeLog
src/cmds.c

index e9023b0163199d0dbbbbcbda147c69f7b4dbc8ff..61cf68ee26ff6d408432b5194d77bae854b7efd5 100644 (file)
@@ -1,3 +1,8 @@
+2014-02-10  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * cmds.c (Fself_insert_command): Respect the width of EMACS_INT
+       and avoid warning.
+
 2014-02-09  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * cmds.c (Fself_insert_command): Output a clearer error message on
index 29c574abb14d982a53b0fa2752002bda96506279..03ce54c8ee4ff7842968a69b0dca81201ad84114 100644 (file)
@@ -280,7 +280,7 @@ At the end, it runs `post-self-insert-hook'.  */)
   CHECK_NUMBER (n);
 
   if (XFASTINT (n) < 1)
-    error ("Repetition argument is %d, but must be higher than 0.",
+    error ("Repetition argument is %"pI"d, but must be higher than 0.",
           XFASTINT (n));
 
   if (!EQ (Vthis_command, KVAR (current_kboard, Vlast_command)))